<?php
$btn = "Add";

if ($title == "EDIT") {
    $btn = "Save";
}

?>



<div class=" ui-widget-header ui-corner-all ui-helper-clearfix pushDown tCenter titulo">
    <span class="ui-dialog-title"><?= $title ?> ACTIVITY</span>
</div>


<?php echo form_open_multipart('activity/add'); ?>


<div class="pushUpL pushDownL">

    <input type="hidden" name="id" value="<?= $id ?>"/>
    <label for="txt_lugar">Name : </label> <input type="text" name="name" id="placement" value="<?= $name ?>"/><br>
    <label for="txt_lugar">Place : </label> <input type="text" name="placement" id="placement" value="<?= $placement ?>"/> <br>
    <label for="txt_date_act">Date: </label> <input type="text" name="date_act" id="date_act" value="<?= $date_act ?>"/> <br>
    <label for="txt_price">Price: </label> <input type="text" name="price" id="price" value="<?= $price ?>" /><br>
    <label for="txt_descripcion">Description: </label> <input type="text" name="description" id="description" value="<?= $description ?>"/><br>

</div>
<input type="submit" name="submit" id="add" value="<?= $btn ?>"/>



</form>

<script type="text/javascript">
    $('input').attr({'class': 'ui-corner-all'});
    $('#add').button();

    $('#date_act').datepicker({dateFormat: 'dd/mm/yy'});
    $('label').attr({'class': 'blockForm'});

</script>

